package com.itheima.controller;

import com.itheima.pojo.EmpLog;
import com.itheima.pojo.PageResult;
import com.itheima.pojo.Result;
import com.itheima.service.LogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
@Slf4j
public class logController {

    @Autowired
    LogService logService;
    @GetMapping("/page")
    Result selectLogInfo(Integer page,Integer pageSize){
        PageResult pageResult = logService.selectLog(page,pageSize);
        return Result.success(pageResult);
    }
}
